<extend name="Public/layout" />
<block name="head">
  <link rel="stylesheet" href="__PUBLIC__css/circle-detail.css?t=<php>echo time()</php>">
  <link rel="stylesheet" href="__PUBLIC__css/baishi.css?t=<php>echo time()</php>">
  <script src="__PUBLIC__js/circle.js?t=<php>echo time()</php>"></script>
  <script src="__PUBLIC__js/baishi.js?t=<php>echo time()</php>"></script>
  <script src="__PUBLIC__js/report.js?t=<php>echo time()</php>"></script>
  <!-- <link rel="stylesheet" href="../assets/swiper/css/swiper.min.css">
    <script src="../js/jquery.min.js"></script>
    <script src="../assets/swiper/js/swiper.jquery.min.js"></script> -->
  <style type="text/css">
    .footer {
      display: none;
    }
  </style>
</block>

<block name="main">
  <div class="headers-title">
    <div class="header">
      <div class="header-top">
        <div class="header-left">
          <img src="{$circle_info.logo}" height="64" width="256">
        </div>
        <div class="header-right">
          <div class="header-title">
            <h4>平台排名</h4>
          </div>
          <div class="header-rank">
            <a href="{$circle_info.eye_url}" class="rank-item item-left">
              <img src="__PUBLIC__images/circle-rankone.png" height="18" width="82">
              <p>{$plat_order.wdty_order}</p>
            </a>
            <a href="{$circle_info.home_url}" class="rank-item item-right">
              <img src="__PUBLIC__images/circle-ranktwo.png" height="18" width="82">
              <p>{$plat_order.wdzj_order}</p>
            </a>
          </div>
        </div>
      </div>
      <div class="header-bottom">
        <ul>
          <li>
            <span>{$circle_info.background}</span>
          </li>
          <if condition="$circle_info.deposit neq '暂无'">
            <li>
              <span>{$circle_info.deposit}</span>
            </li>
          </if>
          <li>
            <span>{$circle_info.online}</span>
          </li>
          <li>
            <span>历史兑付率：{$circle_info.conversion}%</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="title-item">
      <div class="title-left">
        <div class="left-top">
          <h4>投友点评(
            <if condition="$cricel_leve[usre_grade][usre_grade] gt 0">{$cricel_leve.usre_grade.usre_grade}
              <else/>0</if>人)</h4>
          <img class="put-friend" src="__PUBLIC__images/problem.png">
        </div>
        <div class="left-bottom">
          <div class="left-percent">
            <span class="per-up ">
              <span class="per-lower user_up"></span>
            </span>

          </div>
          <div class="left-chara">
            <span>
              <if condition="$cricel_leve[usre_grade][count_percent] gt 0">{$cricel_leve.usre_grade.count_percent}
                <else/>0</if>%</span>
          </div>
          <if condition="$cricel_leve[usre_grade][colligate] eq 1">
            <div class="left-btn btn-sug">
            </div>
            <elseif condition="$cricel_leve[usre_grade][colligate] eq 2" />
            <div class="left-btn btn-set">
            </div>
            <elseif condition="$cricel_leve[usre_grade][colligate] eq 3" />
            <div class="left-btn btn-pru">
            </div>
            <elseif condition="$cricel_leve[usre_grade][colligate] eq 4" />
            <div class="left-btn btn-no">
            </div>
          </if>


          <span class="title-bor"></span>
        </div>
      </div>
      <div class="title-right">
        <div class="right-top">
          <h4>投顾点评(
            <if condition="$cricel_leve[usre_push][usre_grade] gt 0">{$cricel_leve.usre_push.usre_grade}
              <else/>0</if>人)</h4>
          <img class="put-gu" src="__PUBLIC__images/problem.png">
        </div>
        <div class="right-bottom">
          <div class="right-percent">
            <span class="per-up">
              <span class="per-lower  push_up"></span>
            </span>

          </div>
          <div class="right-chara">
            <span>
              <if condition="$cricel_leve[usre_push][count_percent] gt 0">{$cricel_leve.usre_push.count_percent}
                <else/>0</if>%</span>
          </div>
          <if condition="$cricel_leve[usre_push][colligate] eq 1">
            <div class="right-btn btn-sug">
            </div>
            <elseif condition="$cricel_leve[usre_push][colligate] eq 2" />
            <div class="right-btn btn-set">
            </div>
            <elseif condition="$cricel_leve[usre_push][colligate] eq 3" />
            <div class="right-btn btn-pru">
            </div>
            <elseif condition="$cricel_leve[usre_push][colligate] eq 4" />
            <div class="right-btn btn-no">
            </div>
          </if>

        </div>
      </div>
    </div>
    <div class="platform">
      <a href="#">
        <div class="plat-pro">
          <h4>平台合规进程</h4>
        </div>
        <div class="plat-per">
          <span class="plat-per-up">
            <span class="plat-per-lower per_lower"></span>
          </span>

        </div>
        <div class="plat-chara">
          <span>{$cricel_course.is_good}%</span>
        </div>
        <div class="plat-more">></div>
      </a>
    </div>
  </div>
  <!-- 8号金融街视频走访 -->
  <notempty name="jie_appraisal">
  <div class="video-plat">
    <div class="title">
      <h4>8号金融街视频走访</h4>
    </div>
    <div class="plat-swiper-container">
      <div class="swiper-wrapper">
        <foreach name="jie_appraisal" item="v">
          <if condition="$v.house_id gt 0">
          <div class="swiper-slide">
              <if condition="$v.nexus eq 1">
                  <a href="{:U('Video/appraisal_info',array('p_id'=>$v[platform_id],'v_id'=>$v[video_info][id],'cate_id'=>$v[cate_id]))}">
              <else/>
                  <a href="{:U('Video/appraisal_info',array('a_id'=>$v[id],'v_id'=>$v[video_info][id],'cate_id'=>$v[cate_id]))}">
              </if>
              <img src="{$v.video_info.pic}" alt="">
              <div class="common-detail">
                <p>播放:{$v.video_info.play_count}
                  <span>{$v.video_info.add_time|date="Y-m-d",###}</span>
                </p>
                <p class="video-title">{$v.video_info.title}</p>
              </div>
            </a>
          </div>
          </if>
        </foreach>
      </div>
    </div>
  </div>
  </notempty>
  <!-- 深度评测 -->

  <notempty name="otth_appraisal">
    <div class="deep">
      <div class="deep-title">
        <h4>深度评测</h4>
      </div>
      <div class="deep-con">
        <ul>
          <foreach name="otth_appraisal" item="v">
            <li>
              <a href="/Home/News/news_info/id/{$v.news_id}/otth/{$v.id}">
                <div class="time">
                  <p>{$v.add_data_day}</p>
                  <p>{$v.add_data_month}</p>
                </div>
                <div class="deep-img">
                  <img src="{$v.otth_logo}" alt="">
                </div>
                <div class="article">
                  <p class="article-title">{:msubstr($v[title],0,14)}</p>
                  <p class="article-detail">{:msubstr($v['news_info']['content_short'],0,16)}</p>
                </div>
              </a>
            </li>
          </foreach>
        </ul>
      </div>
    </div>
  </notempty>
  <!-- 平台返利方案 -->
  <div class="plat-plan">
    <div class="plat-plan-title">
      <h4>平台返利方案</h4>
      <span class="plat-rule">投资须知</span>
    </div>
    <div class="plat-content">
      <ul>
        <volist name="list" id="v" offset="0" length='2'>
        <li onclick="location.href='/Home/platform/jump_to_platform/plat_id/{$v.platform_id}'">
          <div class="plat-content-pro">
            <div class="pro-item-top">
              <div class="pro-item-title">{$v.scheme}</div>
              <div class="pro-item-tips">
                <span>起投{:ceil($v['start_amount'])}元</span>
                <if condition="$v.rebate gt 0">
                  <span>复投返利</span>
                <else/>
                  <span>首投返利</span>
                </if>
              </div>
            </div>
            <div class="plat-content-buttom">
              <div class="plat-content-data">
                <dd class="red">
                
                <if condition="$v.rebate gt 0">
                    <span>{$v.rebate}</span>%</dd>
                    <dd>加息返利</dd>
                <else/>
                    <span>{$v.user_award}</span>元</dd>
                    <dd>返现金红包</dd>
                </if>


              </div>
              <div class="plat-content-data">
                <dd>往期年化
                  <i>{$v.yields}%</i>
                </dd>
                <dd>投资期限
                  <i>{$v.deadline}<if condition="$v.deadline_unit eq 0">个月<else/>天</if></i>
                </dd>
              </div>
            </div>
          </div>
        </li>
      </volist>

      </ul>
    </div>
    <div class="plat-mores">查看更多方案</div>
  </div>
  <!-- 投友点评、投顾点评 -->
  <div class="tabs">
    <!-- <div class="nav-swiper-container">
          <div class="swiper-wrapper">
              <div class="swiper-slide active cast" >投顾观点</div>
          </div>
      </div> -->
    <div class="tabs-title">观点</div>
  </div>
  <!-- 投顾点评 -->
  <div class="inveset-com">
    <ul id="tg_info">
      <foreach name='evaluate.all_evaluate' item="v">
        <if condition="$v.type eq 1">
          <li class="clearfix">
            <div class="item-top">
              <div class="item-right">
                <img src="{$v.user.url_img}">
                <div class="user">
                  <h4>{$v.user.nickname}</h4>
                  <if condition="$v.user_role eq 2">
                  <img src="__PUBLIC__images/ad-star.png">
                  </if>
                  <if condition="$v.is_invest eq 1">
                    <p>已投</p>
                  </if>
                </div>
                <div class="comment">
                  <notempty name="v.tag">
                    <ul>
                      <volist name="v.tag" id="va" offset="0" length='3'>
                        <li>
                          <span>{$va}</span>
                        </li>
                      </volist>
                    </ul>
                  </notempty>
                </div>
              </div>
              <div class="item-right-all">
                <div class="report" onclick="report(1,'{$v[id]}','{$id}')">举报</div>
                <switch name="v.grade.colligate">
                  <case value="1" break="1">
                    <div class="top-btn btn-sug">
                    </div>
                  </case>
                  <case value="2">
                    <div class="top-btn btn-set">
                    </div>
                  </case>
                  <case value="3">
                    <div class="top-btn btn-pru">
                    </div>
                  </case>
                  <case value="4">
                    <div class="top-btn btn-no">
                    </div>
                  </case>
                </switch>
              </div>
            </div>
            <a href="/Home/Circle/commentary_info/id/{$v.id}/platform_id/{$_GET['id']}">
              <div class="item-bottom">
                <p>{$v.evaluate}</p>
              </div>
            </a>
            <div class="item-time">
              <p>{$v.add_date}</p>
            </div>
            <div class="item-left">
              <if condition="$v.is_praise eq 0">
                <div class="item-no" onclick="praise(this,6,{$v.id})">
                  <img src="__PUBLIC__images/comment-no.png" height="26" width="28">
                  <else/>
                  <div class="item-good" onclick="praise(this,6,{$v.id})">
                    <img src="__PUBLIC__images/comment-good.png" height="26" width="28">
              </if>
              <span>{$v.praise}</span>
              </div>

              <a href="/Home/Circle/commentary_info/id/{$v.id}/platform_id/{$_GET['id']}" class="item-com">
                <img src="__PUBLIC__images/comment.png" height="25" width="28">
                <span>{$v.comment}</span>
              </a>

          </li>
          <elseif condition="$v.type eq 2" />
          <li class="clearfix">

            <div class="item-top">
              <div class="item-right">
                <img src="{$v.user.url_img}">
                <div class="user">
                  <h4>{$v.user.nickname}</h4>
                   <if condition="$v.user_role eq 2">
                  <img src="__PUBLIC__images/ad-star.png">
                  </if>
                  <if condition="$v.is_invest eq 1">
                    <p>已投</p>
                  </if>
                </div>
                <div class="comment">
                  <ul>
                    <li>
                      <span class="deep-test">深度评测</span>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="item-right-all">
                <div class="report" onclick="report(1,'{$v[id]}','{$id}')">举报</div>
                <switch name="v.grade.colligate">
                  <case value="1" break="1">
                    <div class="top-btn btn-sug">
                    </div>
                  </case>
                  <case value="2">
                    <div class="top-btn btn-set">
                    </div>
                  </case>
                  <case value="3">
                    <div class="top-btn btn-pru">
                    </div>
                  </case>
                  <case value="4">
                    <div class="top-btn btn-no">
                    </div>
                  </case>
                </switch>
              </div>
            </div>
            <a href="/Home/Circle/depth_info/id/{$v.id}/platform_id/{$_GET['id']}">
              <div class="item-bottom">
                <p>{$v.strength}</p>
              </div>
            </a>
            <div class="item-time">
              <p>{$v.add_date}</p>
            </div>
            <div class="item-left">
              <if condition="$v.is_praise eq 0">
                <div class="item-no" onclick="praise(this,7,{$v.id})">
                  <img src="__PUBLIC__images/comment-no.png" height="26" width="28">
                  <else/>
                  <div class="item-good" onclick="praise(this,7,{$v.id})">
                    <img src="__PUBLIC__images/comment-good.png" height="26" width="28">
              </if>
              <span>{$v.praise}</span>
              </div>

              <a href="/Home/Circle/depth_info/id/{$v.id}/platform_id/{$_GET['id']}" class="item-com">
                <img src="__PUBLIC__images/comment.png" height="25" width="28">
                <span>{$v.comment}</span>
              </a>

          </li>

          <elseif condition="$v.type eq 3" />
          <li class="clearfix">

            <div class="item-top">
              <div class="item-right">
                <img src="{$v.user.url_img}">
                <div class="user">
                  <h4>{$v.user.nickname}</h4>
                   <if condition="$v.user_role eq 2">
                  <img src="__PUBLIC__images/ad-star.png">
                  </if>
                  <if condition="$v.is_invest eq 1">
                    <p>已投</p>
                  </if>
                </div>
                <div class="comment">
                  <ul>
                    <li>
                      <span class="letter-cloak">信披解读</span>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="item-right-all">
                <div class="report" onclick="report(1,'{$v[id]}','{$id}')">举报</div>
                <switch name="v.grade.colligate">
                  <case value="1" break="1">
                    <div class="top-btn btn-sug">
                    </div>
                  </case>
                  <case value="2">
                    <div class="top-btn btn-set">
                    </div>
                  </case>
                  <case value="3">
                    <div class="top-btn btn-pru">
                    </div>
                  </case>
                  <case value="4">
                    <div class="top-btn btn-no">
                    </div>
                  </case>
                </switch>
              </div>
            </div>
            <a href="/Home/Circle/infoann_info/id/{$v.id}/platform_id/{$_GET['id']}">
              <div class="item-bottom">
                <p>{$v.announce}</p>
              </div>
            </a>
            <div class="item-time">
              <p>{$v.add_date}</p>
            </div>
            <div class="item-left">
              <if condition="$v.is_praise eq 0">
                <div class="item-no" onclick="praise(this,9,{$v.id})">
                  <img src="__PUBLIC__images/comment-no.png" height="26" width="28">
                  <else/>
                  <div class="item-good" onclick="praise(this,9,{$v.id})">
                    <img src="__PUBLIC__images/comment-good.png" height="26" width="28">
              </if>
              <span>{$v.praise}</span>
              </div>

              <a href="/Home/Circle/infoann_info/id/{$v.id}/platform_id/{$_GET['id']}" class="item-com">
                <img src="__PUBLIC__images/comment.png" height="25" width="28">
                <span>{$v.comment}</span>
              </a>

              </a>
          </li>
          <elseif condition="$v.type eq 4" />

          <li class="clearfix">

            <div class="item-top">
              <div class="item-right">
                <img src="{$v.user.url_img}">
                <div class="user">
                  <h4>{$v.user.nickname}</h4>
                   <if condition="$v.user_role eq 2">
                  <img src="__PUBLIC__images/ad-star.png">
                  </if>
                  <if condition="$v.is_invest eq 1">
                    <p>已投</p>
                  </if>
                </div>
                <div class="comment">
                  <ul>
                    <li>
                      <span class="public-sent">舆情解读</span>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="item-right-all">
                <div class="report" onclick="report(1,'{$v[id]}','{$id}')">举报</div>
                <switch name="v.grade.colligate">
                  <case value="1" break="1">
                    <div class="top-btn btn-sug">
                    </div>
                  </case>
                  <case value="2">
                    <div class="top-btn btn-set">
                    </div>
                  </case>
                  <case value="3">
                    <div class="top-btn btn-pru">
                    </div>
                  </case>
                  <case value="4">
                    <div class="top-btn btn-no">
                    </div>
                  </case>
                </switch>
              </div>

            </div>
            <div class="opinion-item">
              <div class="opinion-content">
                <h4>舆情标题:{:msubstr($v[title],0,23)}</h4>
                <a href="{$v.url}">舆情链接:{:msubstr($v[url],0,40)}</a>
              </div>
            </div>
            <a href="/Home/Circle/circle_opinion_info/id/{$v.id}/platform_id/{$_GET['id']}" class="item-bottom">
              <p>{$v.content}</p>
            </a>
            <div class="item-time">
              <p>{$v.add_date}</p>
            </div>
            <div class="item-left">
              <if condition="$v.is_praise eq 0">
                <div class="item-no" onclick="praise(this,8,{$v.id})">
                  <img src="__PUBLIC__images/comment-no.png" height="26" width="28">
                  <else/>
                  <div class="item-good" onclick="praise(this,8,{$v.id})">
                    <img src="__PUBLIC__images/comment-good.png" height="26" width="28">
              </if>
              <span>{$v.praise}</span>
              </div>
              <a href="/Home/Circle/circle_opinion_info/id/{$v.id}/platform_id/{$_GET['id']}" class="item-com">
                <img src="__PUBLIC__images/comment.png" height="25" width="28">
                <span>{$v.comment}</span>
              </a>
              </div>
          </li>
        </if>
      </foreach>

    </ul>
    <div class="loading clearfix">
      <span class="loading-left"></span>
      <p>加载中</p>
      <span class="loading-right"></span>
    </div>
    <div class="base-line clearfix">
      <span class="base-left"></span>
      <p>我是有底线的</p>
      <span class="base-right"></span>
    </div>
    </div>

    <!-- 底部 -->
    <div class="plat-footer">
      <div class="dianping comment-footer-right">
        <dd></dd>
        <p>我要点评</p>
      </div>
      <div class="footer-pro">
        <div class="footer-pro-item">
          <a onclick="to_invitation()">邀请好友投资</a>
        </div>
        <div class="footer-pro-item">
          <a  onclick="to_plat()">直接投资拿返利</a>
        </div>
      </div>
    </div>
    <!-- 我要点评弹窗 -->
    <div class="my-comment">
      <ul class="clearfix">
        <li>
          <a href="/Home/Circle/short_commentary/id/{$_GET['id']}">
            <div class="plat-comment">
              <img src="__PUBLIC__images/plat-comment.png">
            </div>
            <p>平台短评</p>
          </a>
        </li>
        <li>
          <a href="/Home/Circle/circle_opinion/id/{$_GET['id']}">
            <div class="opinion-comment">
              <img src="__PUBLIC__images/opinion-comment.png" height="64" width="66">
            </div>

            <p>舆情解读</p>
          </a>
        </li>
        <li>
          <if condition="$_SESSION['user']['role'] eq 2">
            <a href="/Home/Circle/depth/id/{$_GET['id']}">
              <div class="deep-comment ">
                <img src="__PUBLIC__images/deep-comment.png">
                <else/>
                <a href="javascript:" onclick="is_no_tg()">
                  <div class="deep-comment  opinion-no">
                    <img src="__PUBLIC__images/deep-comment.png">
          </if>

          </div>
          <p>深度测评</p>
          </a>
        </li>
        <li>
          <if condition="$_SESSION['user']['role'] eq 2">
            <a href="/Home/Circle/infoann/id/{$_GET['id']}">
              <div class="inform-comment">
                <img src="__PUBLIC__images/inform-comment.png">
                <else/>
                <a onclick="is_no_tg()">
                  <div class="inform-comment opinion-no">
                    <img src="__PUBLIC__images/inform-comment.png">
          </if>
          </div>
          <p>信披解读</p>
          </a>
        </li>

      </ul>
      <div class="cancle">
        <p>取消</p>
      </div>
      </div>
      </div>
      <div class="baishitie"></div>
      <div class="suc-mon"></div>
      <!-- 弹窗 -->
      <div class="plat-more-popup">
        <!-- 平台返利弹窗 -->
        <div class="plat-plan">
          <div class="plat-plan-title">
            <h4>平台返利方案</h4>
            <i class="plat-plan-close"></i>
          </div>
          <div class="plat-content">
            <ul>
                 <foreach name="list" item="v">
                  <li onclick="location.href='/Home/platform/jump_to_platform/plat_id/{$v.platform_id}'">
                    <div class="plat-content-pro">
                      <div class="pro-item-top">
                        <div class="pro-item-title">{$v.scheme}</div>
                        <div class="pro-item-tips">
                          <span>起投{:ceil($v['start_amount'])}元</span>
                          <if condition="$v.rebate gt 0">
                            <span>复投返利</span>
                          <else/>
                            <span>首投返利</span>
                          </if>
                        </div>
                      </div>
                      <div class="plat-content-buttom">
                        <div class="plat-content-data">
                          <dd class="red">
                          
                          <if condition="$v.rebate gt 0">
                              <span>{$v.rebate}</span>%</dd>
                              <dd>加息返利</dd>
                          <else/>
                              <span>{$v.user_award}</span>元</dd>
                              <dd>返现金红包</dd>
                          </if>


                        </div>
                        <div class="plat-content-data">
                          <dd>往期年化
                            <i>{$v.yields}%</i>
                          </dd>
                          <dd>投资期限
                            <i>{$v.deadline}<if condition="$v.deadline_unit eq 0">个月<else/>天</if></i>
                          </dd>
                        </div>
                      </div>
                    </div>
                  </li>
                </foreach>
            </ul>
          </div>
          <div class="plat-footer-item">
            <div class="plat-footer-item-info">
              <a href="javascript:" onclick="to_invitation()">邀请好友投资</a>
            </div>
            <div class="plat-footer-item-info">
              <a href="javascript:" onclick="to_plat()">直接投资拿返利</a>
            </div>
          </div>
        </div>
        <!-- 投资须知弹窗 -->
        <div class="plat-rule">
          <div class="plat-plan-title">
            <h4>投资须知</h4>
            <i class="plat-plan-close"></i>
          </div>
          <div class="plat-text">
            <h4>投资声明</h4>
            <p>1.本网站所提供的信息，若在任何司法管辖地区供任何人士使用</p>
            <p>2.人士时会违反该司法管辖地区的法律或条例的规定或会导致本网站 </p>
            <p>3.或其第三方代理人受限于该司法管辖地区内的任何监管规定时 </p>
            <p>4.则该等信息不宜在该司法管辖地区供该等任何人士使用</p>
          </div>
          <div class="plat-text">
            <h4>免责声明</h4>
            <p>本网站所提供的信息，若在任何司法管辖地区供任何人士使用或分发给任何人士时会违反该司法管辖地区的法律或条例的规定或会导致本网站或其第三方代理人受限于该司法管辖地区内的任何监管规定时，则该等信息不宜在该司法管辖地区供该等任何人士使用或分发给该等任何人士。
              用户须自行保证不会受限于任何限制或禁止用户使用或分发本网站所提供信息的当地的规定。
            </p>
          </div>
          <div class="flow">
            <h4>返利流程</h4>
            <div class="flow-con">
              <ul>
                <li class="item-one">
                  <div class="num-item">
                    <p>1</p>
                    <span></span>
                  </div>
                  <p>选择平台跳转投资对应标的</p>
                </li>
                <li class="item-two">
                  <div class="num-item">
                    <p>2</p>
                    <span></span>
                  </div>
                  <p>即日-次日 返利至返利账户</p>
                </li>
                <li class="item-three">
                  <div class="num-item">
                    <p>3</p>
                  </div>
                  <p>1个工作日可自动提现至绑定银行卡</p>
                </li>
              </ul>
            </div>
          </div>
          <div class="ok" onclick="closeAll()">我知道了</div>
        </div>
      </div>
      <div class="plat-more-popup-yy"></div>

</block>
<block name="js">

  <script type="text/javascript">
    $('.suc-mon').click(function () {
      $('.suc-mon').css('display', 'none')
    })
    function to_plat(){
       var user_id = "{$_SESSION['user']['id']}"
      if (!user_id) {
        layer.open({
          content: '请先登录！'
          , skin: 'msg'
          , time: 1
          , end: function () {
            location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
          }
        });
      }else{
       location.href = "/Home/Platform/jump_to_platform/plat_id/{$_GET[id]}"
      }

    }
    function to_invitation(){
       var userid = "{$_SESSION['user']['id']}"
      if (!userid) {
        layer.open({
          content: '请先登录！'
          , skin: 'msg'
          , time: 1
          , end: function () {
            location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
          }
        });
      }else{
        location.href="/Home/Financial/event"
      }

      
    }
    function is_no_tg() {
      //询问框
      layer.open({
        content: '您还不是投资顾问不能发表深度评测和舆情解读！'
        , btn: ['立即申请投顾', '再逛逛']
        , yes: function (index) {
          location.href = '/Home/Recommend/apply_pusher';
        }
      });

    }
    var p = 1;
    var tag = 2;
    var status = 1;
    $(window).scroll(function () {
      if (status) {
        if ($(document).scrollTop() == $(document).height() - $(window).height()) {
          $('.loading').css('display', 'block');
          $('.base-line').css('display', 'none');
          get_more(tag, p)
          p = p + 1;
        }
      }


    });

    function get_more(tag, p, val) {
      var platform_id = "{$_GET['id']}"
      $.post('/Home/Circle/get_evaluate', {
        platform_id: platform_id,
        val: tag,
        p: p
      }, function (res) {
        if (res.content) {
          if (tag == 1) {
            if (val) {
              $('#user_info').html(res.content)
            } else {
              $('#user_info').append(res.content)
            }

          } else if (tag == 2) {
            if (val) {
              $('#tg_info').html(res.content)
            } else {
              $('#tg_info').append(res.content)
            }
          }
        } else {
          $('.loading').css('display', 'none');
          $('.base-line').css('display', 'block');
          status = 0;
        }
      })
    }
    function isnologin() {
      layer.open({
        content: '请先登录！'
        , skin: 'msg'
        , time: 1
        , end: function () {
          location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
        }
      });
    }
    function praise(obj, type, id) {
      var userid = "{$_SESSION['user']['id']}"
      if (!userid) {
        layer.open({
          content: '请先登录！'
          , skin: 'msg'
          , time: 1
          , end: function () {
            location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
          }
        });
      }
      if (type == 6) {
        var postdata = { commentid: id, id: id, type: type }
      } else if (type == 7) {
        var postdata = { depthid: id, id: id, type: type, }
      } else if (type == 8) {
        var postdata = { opinionid: id, id: id, type: type, }
      } else if (type == 9) {
        var postdata = { announceid: id, id: id, type: type, }
      }

      $.post('/Home/Praise/ajax_praise', postdata, function (res) {
        if (res.err == 0) {
          $(obj).removeClass('item-no')
          $(obj).addClass('item-good')
          $(obj).find('img').attr('src', '/App/Home/Public/images/comment-good.png')
          var num = parseInt($(obj).find('span').text())
          num = num + 1
          $(obj).find('span').text(num)
        } else {
          layer.open({
            content: res.msg
            , skin: 'msg'
            , time: 1

          });
        }
      })
    }

    $(function () {
      var user_up = "{$cricel_leve.usre_grade.count_percent}";
      var push_up = "{$cricel_leve.usre_push.count_percent}";
      var per_lower = "{$cricel_course.is_good}";
      var cricel_course_good = "{$cricel_course.is_good}";
      console.log(cricel_course_good)
      $(".user_up").animate({ width: user_up + '%' }, 1000);
      $(".push_up").animate({ width: push_up + '%' }, 1000);
      $(".per_lower").animate({ width: per_lower + '%' }, 1000);
      $(".per-item-lower").animate({ width: cricel_course_good + '%' }, 1000);
      $("#basics_b").animate({ width: cricel_course_good + '%' }, 1000);
    })

    function im() {
      var user_id = "{$_SESSION['user']['id']}"

      if (user_id) {
        location.href = "/Home/Im/group/id/{$_GET['id']}"
      } else {
        layer.open({
          content: '请先登录！'
          , skin: 'msg'
          , time: 1
          , end: function () {
            location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
          }
        });
      }
    }
    // 投友、投顾点评模块切换
    $('.cast').click(function () {
      $('.cast').addClass('active');
      $('.inveset').removeClass('active');
      $('.inveset-com').css('display', 'block');
      $('.container').css('display', 'none');
      tag = 2;
      p = 1
      status = 1
      get_more(tag, 0, 1)
    });
    $('.inveset').click(function () {
      $('.inveset').addClass('active');
      $('.cast').removeClass('active');
      $('.container').css('display', 'block');
      $('.inveset-com').css('display', 'none');
      tag = 1
      p = 1
      status = 1
      get_more(tag, 0, 1)

    });


    // 平台合规进程
    $('.platform').click(function () {
      var id = "{$_GET['id']}"
      $.post('/Home/Circle/get_cricel_course/val/1', {
        id: id,
      }, function (res) {
        //console.log(res.content)
        layer.open({
          type: 1
          , content: res.content
          , anim: 'up'
          , style: 'position:fixed; bottom:0; left:0; width: 100%; height: 100%; padding:10px 0; border:none;'
        });
        document.addEventListener("touchmove", function (e) {
          e.preventDefault();
          e.stopPropagation();
        }, false);
      });

    })


    function platProcess() {
      layer.closeAll();
      document.addEventListener("touchmove", function (e) {
        e.returnValue = true;
      }, false);
    }

    function to_fans(recommend_id, obj, val) {
      $(obj).attr('onclick', "")
      $.post('{:U("Recommend/recommend_fllow")}', {
        recommend_id: recommend_id,
        val: val,
      }, function (res) {
        if (res.err == 1) {
          layer.open({
            content: res.msg
            , skin: 'msg'
            , time: 2
            , end: function () { location.href = '/Home/User/login' }
          });
        } else {
          layer.open({
            content: res.msg
            , skin: 'msg'
            , time: 1
            , end: function () {
              if (val == 1) {
                $(obj).addClass('active');
                $(obj).text('已拜师')
                $(obj).attr('onclick', "to_fans(" + recommend_id + ",this,0)")
              } else {
                $(obj).removeClass('active');
                $(obj).text('拜师')
                $(obj).attr('onclick', "to_fans(" + recommend_id + ",this,1)")
              }

            }
          });
        }
      })
    }
    // 我要点评弹窗
    $('.comment-footer-right').click(function () {
      var user_id = "{$_SESSION['user']['id']}"
      var card_status = "{$_SESSION['user']['card_status']}"
      if (!user_id) {
        layer.open({
          content: '请先登录！'
          , skin: 'msg'
          , time: 1
          , end: function () {
            location.href = "/Home/User/login?callback=/Home/circle/circle_info/id/{$_GET['id']}"
          }
        });
        return;
      }
      if (card_status == 0) {
        layer.open({
          content: '您还未进行实名认证暂时无法发布言论!'
          , btn: ['立即实名', '再逛逛']
          , yes: function (index) {
            location.href = "/Home/Person/relaname";
            layer.close(index);
          }
        });

        return;
      }
      var h = $(window).height();
      // $('body').height(h);
      $('body').css('overflow', 'hidden');
      $('.my-comment').css('display', 'block');
      $('.my-comment').css('top', $(document).scrollTop());
      document.addEventListener("touchmove", function (e) {
        e.preventDefault();
        e.stopPropagation();
      }, false);
    });
    $('.cancle').click(function () {
      $('body').css('overflow', '');
      $('.my-comment').css('display', 'none');
      document.addEventListener("touchmove", function (e) {
        e.returnValue = true;
      }, false);
    })
    // 平台返利弹窗
    $('.plat-plan >.plat-mores').click(function () {
      $('.plat-more-popup-yy').show();
      $('.plat-more-popup').slideDown();
      $('.plat-more-popup>.plat-rule').hide();
      $('.plat-more-popup>.plat-plan').show();
      $('body').css('overflow', 'hidden');

    })
    // 投资须知弹窗
    $('.plat-plan >.plat-plan-title>.plat-rule').click(function () {      
      $('.plat-more-popup-yy').show();
      $('.plat-more-popup').slideDown();
      $('.plat-more-popup>.plat-plan').hide();
      $('.plat-more-popup>.plat-rule').show();
      $('body').css('overflow', 'hidden');

    })
    $('.plat-plan-close').click(function () {
      $('.plat-more-popup-yy').hide();
      $('.plat-more-popup').slideUp();
      $('body').css('overflow', '');

    })
    $('.ok').click(function () {
      $('.plat-more-popup-yy').hide();
      $('.plat-more-popup').slideUp();
      $('body').css('overflow', '');
    })
    // 投友问号
    $('.put-friend').click(function () {
      layer.open({
        content: '根据投友点评及8号金融街综合数据分析得出'
        , btn: '我知道了'
      });
    })

    // 投友问号
    $('.put-gu').click(function () {
      layer.open({
        content: '根据投顾点评及8号金融街综合数据分析得出'
        , btn: '我知道了'
      });
    })

    var title = "平台测评--{$circle_info.platform_name}！"
    var desc = '集合三方测评，平台合规进度解读，投顾点评。让您安心投资不再雷！'
    var link = window.location.href
    var imgUrl = 'http://wei.8hjie.com/App/Home/Public/images/chat-icon.png'
    // 8号金融街视频走访
    var mySwiper = new Swiper('.plat-swiper-container', {
      slidesPerView: 'auto',
      spaceBetween: 10,
      centeredSlides: true,
      loop: true,
      pagination: {
        el: '.swiper-pagination',
        clickable: true,
      },
    });
  </script>
</block>